<div>
    Checks if the given file exists on the current node.
    Returns <code>true | false</code>.

    This step must be run inside a <code>node</code> context:
<p><pre>
# Scripted Syntax
node {
    if (fileExists('src/main/resources/index.html')) {
        echo "File src/main/resources/index.html found!"
    }
}
</pre></p>

With the Declarative Syntax, it must be run in a stage with a defined agent (e.g. different than `agent none`):

<p><pre>
# Declarative Syntax
stage ('Check for existence of index.html') {
    agent any # Could be a top-level directive or a stage level directive
    steps {
        script {
            if (fileExists('src/main/resources/index.html')) {
                echo "File src/main/resources/index.html found!"
            }
        }
    }
}
</pre></p>
</div>
